-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGrid] Refactor: move Badge to leaf import #15879
Conversation
Deploy preview: https://deploy-preview-15879--material-ui-x.netlify.app/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitty comment... nice improvement
@@ -131,6 +149,18 @@ export interface GridSlotProps { | |||
toolbar: GridToolbarProps & ToolbarPropsOverrides; | |||
} | |||
|
|||
/* Merge MUI types into base types to keep slotProps working. */ | |||
type Merge<A, B> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we define this in a more general (utils) space? This seems as if it could be useful elsewhere as well!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not used anywhere at the moment, I'd wait until it's used twice at least.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Design-agnostic OKR.
Move
Badge
to a leaf import.